﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DusonFramework.UrlRewrite
{
    /// <summary>
    /// 站点伪Url信息类
    /// </summary>
    public class SiteUrls
    {
        private Dictionary<string, string> _UrlList;

        public SiteUrls(Dictionary<string, string> urlDict)
        {
            _UrlList = urlDict;
        }

        public Dictionary<string, string> UrlList
        {
            get
            {
                return _UrlList;
            }
            set
            {
                _UrlList = value;
            }
        }

        public string GetValue(string key)
        {
            string value = null;
            if (_UrlList.TryGetValue(key, out value))
                return value;
            else
                return null;
        }
    }
}
